package com.fosdata.dpm.interceptor;

/**
 * <p>服务端參數异常</p>
 * <p>创建日期：2018-02-28</p>
 *
 * @author 杨洲 yangzhou@td.com
 */
public class ParamException extends RuntimeException {

    private String code;

    public ParamException() {
    }

    public ParamException(String message) {
        super(message);
    }

    public ParamException(String message, Throwable cause) {
        super(message, cause);
    }

    public ParamException(Throwable cause) {
        super(cause);
    }

    public ParamException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public ParamException(String message, String code) {
        super(message);
        this.code = code;
    }

    public ParamException(String message, Throwable cause, String code) {
        super(message, cause);
        this.code = code;
    }

    public ParamException(Throwable cause, String code) {
        super(cause);
        this.code = code;
    }

    public ParamException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String code) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
    }
}
